import axios from 'axios'
import { Toast } from 'vant'

axios.defaults.baseURL = 'http://localhost:3200'
axios.interceptors.response.use(function (response) {
  return response
}, function (error) {
  Toast(error.message)
  return Promise.reject(error)
})

export default axios
